<template>
  <div id="home">
    <van-swipe :autoplay="3000" class="swipeNav">
      <van-swipe-item v-for="(image, index) in images" :key="index">
        <img v-lazy="image.images[0]" @click="onClickImg(image)" />
      </van-swipe-item>
    </van-swipe>

    <van-tabs @click="onClick" v-model="nowChoice">
      <van-tab v-for="item in userLabelList" :title="item.name" :key="item.id">
        <keep-alive>
          <router-view></router-view>
        </keep-alive>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script src="./home.js"></script>

<style scoped lang="less">
@import url('./home.less');
</style>
